package com.shiyi.system.mapper;

import com.shiyi.system.entity.SysMenuRole;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author shiyi
 * @since 2020-11-19
 */
@Mapper
public interface SysMenuRoleMapper extends BaseMapper<SysMenuRole> {

    /**
     * 新增角色菜单
     * @param roleId
     * @param menuIds
     * @return
     */
    boolean saveMenuRole(@Param("roleId") Integer roleId, @Param("menuIds") List<Integer> menuIds);
}
